package com.frikinet.lifeguard.dao;

import com.frikinet.lifeguard.model.PostImage;
import com.frikinet.lifeguard.util.HibernateUtil;

public class PostImageDAO
{
	public static void saveOrUpdate(PostImage postImage)
	{
		HibernateUtil.saveOrUpdate(postImage);
	}
	
	public static void delete(String uid)
	{
		PostImage image = HibernateUtil.get(PostImage.class, "uid", uid);
		if(image != null)
			HibernateUtil.delete(image);
	}
}
